/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年1月21日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package flyweight;

/**
 * @Type ConcreteChess
 * @Desc
 * @author 52489
 * @date 2019年1月21日
 * @Version V1.0
 */
public class ConcreteChess implements ChessFlyWeight {

    private String color;

    /**
     * @param color
     */
    public ConcreteChess(String color) {
        super();
        this.color = color;
    }

    /*
     * (non-Javadoc)
     * 
     * @see flyweight.ChessFlyWeight#setColor()
     */
    @Override
    public String getColor() {
        // TODO Auto-generated method stub
        return null;
    }

    /*
     * (non-Javadoc)
     * 
     * @see flyweight.ChessFlyWeight#display(flyweight.Coordinate)
     */
    @Override
    public void display(Coordinate coordinate) {
        System.out.println("棋子颜色：" + color);
        System.out.println("棋子位置：" + coordinate.getX() + "-----" + coordinate.getY());
    }

    /*
     * (non-Javadoc)
     * 
     * @see flyweight.ChessFlyWeight#setColor(java.lang.String)
     */
    @Override
    public void setColor(String color) {
        // TODO Auto-generated method stub

    }

}
